<?php
$id=$_POST['id'];
//echo $id;die;
$novel_url=$_POST['novel_url'];
$novel_title=$_POST['novel_title'];
$novel_content=$_POST['novel_content'];
$novel_type=$_POST['novel_type'];
$novel_author=$_POST['novel_author'];
$dbh=new PDO('mysql:host=localhost;dbname=gaofei','root','root');
$sql="update novel set novel_url='$novel_url',novel_title='$novel_title',novel_content='$novel_content',novel_type='$novel_type',novel_author='$novel_author' where id='$id'";
$arr=$dbh->exec($sql);
if($arr)
{
    header("location:SHOW.php");
}
else{
    echo "修改失败";
}